<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<link rel="stylesheet" href="../../../prettify.css" type="text/css">
<meta content="MPlaylist,mymyoux.io.mserverconnectorClasses.MPlaylist,joueurSalons,joueurs,salonJoueurs,salonSocks,salons,sockets,socksJoueurs,me,addServer,checkPlayer,destroy,equals,getId,getPeople,getSocketId,onIdentified,onPlayerDisconnect,onPlayerInfo,onPlayersConnect,onRoomClosed,onSocketClose,remServer,toString" name="keywords">
<title>mymyoux.io.mserverconnectorClasses.MPlaylist</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../prettify.js"></script><script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'MPlaylist - Mymyoux's Classes AS3 Reference';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Mymyoux's Classes AS3 Reference</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?mymyoux/io/mserverconnectorClasses/MPlaylist.html&amp;mymyoux/io/mserverconnectorClasses/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;MPlaylist</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class MPlaylist"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">mymyoux.io.mserverconnectorClasses</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class MPlaylist</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">MPlaylist <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> <a href="../../events/MEventDispatcher.html">MEventDispatcher</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Implements</td><td><a href="../../core/IObject.html">IObject</a></td>
</tr>
</table>
<p></p>
  MPlaylist permet la gestion des personnes, la liste des salons dans lesquelles elles se trouvent, leurs informations...
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<div class="showHideLinks">
<div class="hideInheritedProperty" id="hideInheritedProperty">
<a onclick="javascript:setInheritedVisible(false,'Property');" href="#propertySummary" class="showHideLink"><img src="../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Properties</a>
</div>
<div class="showInheritedProperty" id="showInheritedProperty">
<a onclick="javascript:setInheritedVisible(true,'Property');" href="#propertySummary" class="showHideLink"><img src="../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Properties</a>
</div>
</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../../events/MEventDispatcher.html#length">length</a> : uint<div class="summaryTableDescription">
   Indique le nombre d'écouteurs liés au MDispatcherEvent
   </div>
</td><td class="summaryTableOwnerCol"><a href="../../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#me">me</a> : <a href="../mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a>
<div class="summaryTableDescription">[read-only]
   MServerIdentifier du joueur.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#joueurs">joueurs</a> : <a href="../../utils/Hash.html">Hash</a>
<div class="summaryTableDescription">
   Tableau contenant tous les MServerIdentifier des joueurs connectés.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#joueurSalons">joueurSalons</a> : Array<div class="summaryTableDescription">
   joueurSalons[idsocket] est un Hash associant à chaque id de joueur du MadvSocket, le tableau des noms de salons dans lequel il se trouve.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#salonJoueurs">salonJoueurs</a> : Array<div class="summaryTableDescription">
   salonJoueurs[idsalon] est un tableau contenant tous les id des joueurs présents dans le salon associé à idsalon.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#salons">salons</a> : Array<div class="summaryTableDescription">
   Tableau contenant tous les salons ouverts.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#salonSocks">salonSocks</a> : Array<div class="summaryTableDescription">
   Tableau associant à chaque id de salon un id de MadvSocket.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#sockets">sockets</a> : Array<div class="summaryTableDescription">
   Tableau contenant tous les MAdvSocket.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#socksJoueurs">socksJoueurs</a> : Array<div class="summaryTableDescription">
   socksJoueurs[idsalon] est un Hash associant à chaque id de joueur du MadvSocket, son idx ou 0 s'il ne s'est pas encore identifié.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<div class="showHideLinks">
<div class="hideInheritedMethod" id="hideInheritedMethod">
<a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
</div>
<div class="showInheritedMethod" id="showInheritedMethod">
<a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
</div>
</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#MPlaylist()">MPlaylist</a>(me:<a href="MServerIdentifier.html">MServerIdentifier</a>)</div>
<div class="summaryTableDescription">
   Crée un objet de type MPlaylist.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="../../events/MEventDispatcher.html#addEventListener()">addEventListener</a>(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void</div>
<div class="summaryTableDescription">
   Enregistre un écouteur(listener) avec le MEventDispatcher pour que cet écouteur reçoive les notifications d'un évènement.</div>
</td><td class="summaryTableOwnerCol"><a href="../../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addServer()">addServer</a>(socket:<a href="MAdvSocket.html">MAdvSocket</a>):void</div>
<div class="summaryTableDescription">
   Ajoute un MAdvSocket a écouté par la MPlaylist.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#destroy()">destroy</a>():void</div>
<div class="summaryTableDescription">
   
   Détruit l'instance en prenant soin de supprimer tous les écouteurs et autres facteurs de fuites de mémoire.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#equals()">equals</a>(objet:<a href="../../core/IObject.html">IObject</a>):Boolean</div>
<div class="summaryTableDescription">
   
   Renvoie un Boolean indiquant si l'objet envoyé en paramètre est équivalent ou non à l'instance.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getId()">getId</a>(people:<a href="MServerIdentifier.html">MServerIdentifier</a>, name:String):uint</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getPeople()">getPeople</a>(id:int, name:String):<a href="../mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a>
</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="../../events/MEventDispatcher.html#removeAllEventListener()">removeAllEventListener</a>():void</div>
<div class="summaryTableDescription">
   Supprime tous les écouteurs liés au MEventDispatcher pour qu'ils ne reçoivent plus d'évènements.</div>
</td><td class="summaryTableOwnerCol"><a href="../../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="../../events/MEventDispatcher.html#removeEventListener()">removeEventListener</a>(type:String, listener:Function, useCapture:Boolean = false):void</div>
<div class="summaryTableDescription">
   Supprime un écouteur(listener) du MEventDispatcher pour que cet écouteur ne reçoive plus les notifications d'un évènement.</div>
</td><td class="summaryTableOwnerCol"><a href="../../events/MEventDispatcher.html">MEventDispatcher</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#remServer()">remServer</a>(socket:<a href="MAdvSocket.html">MAdvSocket</a>):void</div>
<div class="summaryTableDescription">
   Supprime un MAdvSocket.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toString()">toString</a>():String</div>
<div class="summaryTableDescription">
   
   Convertit l'objet en chaine de caractères.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
</table>
</div>
<a name="protectedMethodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Methods</div>
<table id="summaryTableProtectedMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#checkPlayer()">checkPlayer</a>(idsocket:int, id:int):void</div>
<div class="summaryTableDescription">
   Vérifie si le joueur lié à l'id sur le MadvSocket n°idsocket est encore présent dans au moins un salon.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getSocketId()">getSocketId</a>(socket:<a href="MAdvSocket.html">MAdvSocket</a>):int</div>
<div class="summaryTableDescription">
   Renvoie l'id associé au MAdvSocket passé en paramètre.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onIdentified()">onIdentified</a>(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelée lorsque le joueur reçoit son id de connection
   </div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onPlayerDisconnect()">onPlayerDisconnect</a>(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelée lorsqu'un joueur quitte un salon.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onPlayerInfo()">onPlayerInfo</a>(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelée lors qu'un joueur envoie une mise à jour de son profil.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onPlayersConnect()">onPlayersConnect</a>(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelée lorsqu'un ou plusieurs joueurs se connectent dans un salon.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onRoomClosed()">onRoomClosed</a>(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelée lorsque le joueur quitte un salon.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onSocketClose()">onSocketClose</a>(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</div>
<div class="summaryTableDescription">
   Appelée lorsqu'un MAdvSocket est fermé.</div>
</td><td class="summaryTableOwnerCol">MPlaylist</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="joueurs"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">joueurs</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>protected var joueurs:<a href="../../utils/Hash.html">Hash</a></code><p>
   Tableau contenant tous les MServerIdentifier des joueurs connectés.
   Contient également celui du joueur en cours.
   </p></div>
<a name="joueurSalons"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">joueurSalons</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var joueurSalons:Array</code><p>
   joueurSalons[idsocket] est un Hash associant à chaque id de joueur du MadvSocket, le tableau des noms de salons dans lequel il se trouve.
   </p></div>
<a name="me"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">me</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>me:<a href="../mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a></code>&nbsp;&nbsp;[read-only]<p>
   MServerIdentifier du joueur.
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get me():<a href="../mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a></code>
<br>
</div>
<a name="salonJoueurs"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">salonJoueurs</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var salonJoueurs:Array</code><p>
   salonJoueurs[idsalon] est un tableau contenant tous les id des joueurs présents dans le salon associé à idsalon.
   </p></div>
<a name="salons"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">salons</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var salons:Array</code><p>
   Tableau contenant tous les salons ouverts. Permet ainsi à MPlaylist de leur associer un id à chacun.
   </p></div>
<a name="salonSocks"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">salonSocks</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var salonSocks:Array</code><p>
   Tableau associant à chaque id de salon un id de MadvSocket.
   </p></div>
<a name="sockets"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">sockets</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var sockets:Array</code><p>
   Tableau contenant tous les MAdvSocket. Permet ainsi à MPlaylist de leur associer un id à chacun.
   </p></div>
<a name="socksJoueurs"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">socksJoueurs</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var socksJoueurs:Array</code><p>
   socksJoueurs[idsalon] est un Hash associant à chaque id de joueur du MadvSocket, son idx ou 0 s'il ne s'est pas encore identifié.
   </p></div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="MPlaylist()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MPlaylist</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function MPlaylist(me:<a href="MServerIdentifier.html">MServerIdentifier</a>)</code><p>
   Crée un objet de type MPlaylist.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">me</span>:<a href="MServerIdentifier.html">MServerIdentifier</a></code> &mdash; MServerIdentifier représentant le joueur en cours.
   </td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addServer()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addServer</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function addServer(socket:<a href="MAdvSocket.html">MAdvSocket</a>):void</code><p>
   Ajoute un MAdvSocket a écouté par la MPlaylist.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">socket</span>:<a href="MAdvSocket.html">MAdvSocket</a></code> &mdash; Le MAdvSocket.
   </td>
</tr>
</table>
</div>
<a name="checkPlayer()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">checkPlayer</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function checkPlayer(idsocket:int, id:int):void</code><p>
   Vérifie si le joueur lié à l'id sur le MadvSocket n°idsocket est encore présent dans au moins un salon.
   Sinon le supprime totalement de la MPlaylist ou le désassocie d'un MAdvSocket.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">idsocket</span>:int</code> &mdash; Id du MadvSocket auquel est lié l'id du joueur.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">id</span>:int</code> &mdash; Id du joueur.
   </td>
</tr>
</table>
</div>
<a name="destroy()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">destroy</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public override function destroy():void</code><p>
   
   Détruit l'instance en prenant soin de supprimer tous les écouteurs et autres facteurs de fuites de mémoire.
   </p></div>
<a name="equals()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">equals</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public override function equals(objet:<a href="../../core/IObject.html">IObject</a>):Boolean</code><p>
   
   Renvoie un Boolean indiquant si l'objet envoyé en paramètre est équivalent ou non à l'instance.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">objet</span>:<a href="../../core/IObject.html">IObject</a></code> &mdash; Objet de type IObject dont on cherche à savoir s'il est équivalent ou non.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
</div>
<a name="getId()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getId</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getId(people:<a href="MServerIdentifier.html">MServerIdentifier</a>, name:String):uint</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">people</span>:<a href="MServerIdentifier.html">MServerIdentifier</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>uint</code></td>
</tr>
</table>
</div>
<a name="getPeople()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getPeople</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getPeople(id:int, name:String):<a href="../mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a></code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">id</span>:int</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../mserverconnectorClasses/MServerIdentifier.html">MServerIdentifier</a></code></td>
</tr>
</table>
</div>
<a name="getSocketId()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getSocketId</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function getSocketId(socket:<a href="MAdvSocket.html">MAdvSocket</a>):int</code><p>
   Renvoie l'id associé au MAdvSocket passé en paramètre. Renvoie -1 si le socket n'existe pas.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">socket</span>:<a href="MAdvSocket.html">MAdvSocket</a></code> &mdash; MadvSocket dont on souhaite obtenir l'id
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>int</code> &mdash; id du MAdvSocket.
   </td>
</tr>
</table>
</div>
<a name="onIdentified()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onIdentified</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onIdentified(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelée lorsque le joueur reçoit son id de connection
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; Evenement envoyé par le MadvSocketEvent.
   </td>
</tr>
</table>
</div>
<a name="onPlayerDisconnect()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onPlayerDisconnect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onPlayerDisconnect(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelée lorsqu'un joueur quitte un salon. Met à jour son profil.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; Evenement envoyé par le MadvSocketEvent.
   </td>
</tr>
</table>
</div>
<a name="onPlayerInfo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onPlayerInfo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onPlayerInfo(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelée lors qu'un joueur envoie une mise à jour de son profil.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; Contient les informations nécessaires à cette mise à jour.
   </td>
</tr>
</table>
</div>
<a name="onPlayersConnect()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onPlayersConnect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onPlayersConnect(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelée lorsqu'un ou plusieurs joueurs se connectent dans un salon. Met à jour la liste des salons pour chacun 
   et si nécessaire leur demande une mise à jour de leur profil.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; Evenement envoyé par le MadvSocketEvent.
   </td>
</tr>
</table>
</div>
<a name="onRoomClosed()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onRoomClosed</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onRoomClosed(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelée lorsque le joueur quitte un salon. Permet de mettre à jour les playlists.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; Evenement envoyé par le MadvSocketEvent.
   </td>
</tr>
</table>
</div>
<a name="onSocketClose()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onSocketClose</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onSocketClose(e:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a>):void</code><p>
   Appelée lorsqu'un MAdvSocket est fermé.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../../events/MAdvSocketEvent.html">MAdvSocketEvent</a></code> &mdash; Evenement envoyé par le MadvSocketEvent.
   </td>
</tr>
</table>
</div>
<a name="remServer()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">remServer</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function remServer(socket:<a href="MAdvSocket.html">MAdvSocket</a>):void</code><p>
   Supprime un MAdvSocket. Stoppe son écoute.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">socket</span>:<a href="MAdvSocket.html">MAdvSocket</a></code> &mdash; Le MAdvSocket.
   </td>
</tr>
</table>
</div>
<a name="toString()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public override function toString():String</code><p>
   
   Convertit l'objet en chaine de caractères.
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code> &mdash; Une chaîne de caractères de la forme <code class="prettyprint">[ClasseObject paramètre1="valeur1" paramètre2="valeur2" ... ]</code> 
   </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
